package com.itheima.method;
import java.util.Arrays;
public class Search {
    public static void main(String[] args) {
        int[] a = new int[]{1,38,4,2,6,4};
        int index = Arrays.binarySearch(a,2);
        System.out.println(index);
    }
}
